package indoor.nexd.com.nexdmap.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wangxu on 16/3/7.
 */
public class SearchModel implements Parcelable {

    public static final Creator<SearchModel> CREATOR = new Creator<SearchModel>() {
        @Override
        public SearchModel createFromParcel(Parcel in) {
            return new SearchModel(in);
        }

        @Override
        public SearchModel[] newArray(int size) {
            return new SearchModel[size];
        }
    };
    private String featureName;
    private String featureTypeId;
    private String featureFloor;

    protected SearchModel(Parcel in) {
        featureName = in.readString();
        featureTypeId = in.readString();
        featureFloor = in.readString();
    }

    public SearchModel() {
    }

    public String getFeatureName() {
        return featureName;
    }

    public void setFeatureName(String featureName) {
        this.featureName = featureName;
    }

    public String getFeatureTypeId() {
        return featureTypeId;
    }

    public void setFeatureTypeId(String featureTypeId) {
        this.featureTypeId = featureTypeId;
    }

    public String getFeatureFloor() {
        return featureFloor;
    }

    public void setFeatureFloor(String featureFloor) {
        this.featureFloor = featureFloor;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(featureName);
        dest.writeString(featureTypeId);
        dest.writeString(featureFloor);
    }
}
